package com.wy.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author wangyu
 * @email sunlightcs@gmail.com
 * @date 2022-02-22 14:11:30
 */
@Data
@TableName("user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户id，手机号
	 */
	@TableId
	private Long id;
	/**
	 * 
	 */
	private String nickname;
	/**
	 * MD5(MD5(pass明文+固定salt)+salt)
	 */
	private String password;
	/**
	 * 
	 */
	private String salt;
	/**
	 * 头像
	 */
	private String head;
	/**
	 * 
	 */
	private Date registerData;
	/**
	 * 
	 */
	private Date lastLoginData;
	/**
	 * 
	 */
	private Integer loginCount;

	@TableField(exist = false)
	private String token;

}
